<?php
$db ['goods_cat'] = array (
        'columns' => array (
                'cat_id' => array (
                        'type' => 'number',
                        'required' => true,
                        'pk' => true,
                        'extra' => 'auto_increment',
                        'label' => '分类ID',
                        'width' => 110,
                        'editable' => false,
                        'in_list' => true,
                        'default_in_list' => true 
                ),
                
                
                'parent_id' => array (
                        'type' => 'number',
                        'label' => '父ID',
                        'width' => 110,
                        'editable' => false,
                        'in_list' => true,
                        'parent_id' => true 
                ),
                'is_leaf' => array (
                        'type' => 'bool',
                        'required' => true,
                        'default' => 0,
                        'label' => '是否叶子结点',
                        'width' => 110,
                        'editable' => false,
                        'in_list' => true 
                ),
                'cat_name' => array (
                        'type' => 'varchar(100)',
                        'required' => true,
                        'is_title' => true,
                        'default' => '',
                        'label' => '分类名称',
                        'width' => 110,
                        'editable' => false,
                        'in_list' => true,
                        'default_in_list' => true 
                ),
                'disabled' => array (
                        'type' => 'bool',
                        'default' => '0',
                        'required' => true,
                        'label' =>'是否屏蔽（true：是；false：否）',
                        'width' => 110,
                        'editable' => false,
                        'in_list' => true 
                ),
                'ord' => array (
                        'type' => 'int(5)',
                        'label' => '排序',
                        'width' => 110,
                        'editable' => false,
                        'default' => 0,
                        'in_list' => true 
                )
        ),
        'comment' => '类别属性值有限表'
);
